<?php
include '../application/utils/ImageUtils.php';
include '../application/config/SummonerKey.php';

$sKey = new SummonerKey();
$imgUtils = new ImageUtils();

if(isset($_COOKIE['sguid'])  
     && $sKey->summonerKeyExists($_COOKIE['sguid']) ) //know the requestor based on cookie
{

	$summonerName = $sKey->getSummonerNameFromKey($_COOKIE['sguid']);
	$imgUtils->displayImage($summonerName.".png",10000);
}
else
{
	$imgUtils->displayImage("blanky.gif",10000);
}

?>